package com.wwd.common.lock;

public interface DistributedLock {

	static final int RETRY_TIMES=100;
	
	static final int EXPIRE_TIME=15;
	
	boolean lock(String key,long expire,int retry);
	
	boolean lock(String key,long expire);
	
	boolean lock(String key);
	
	boolean unlock(String key);
}
